package org.iridium.xl.order.vo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 *
 * 待打印的一份订单信息
 * @author iridiumcao
 */
public class VstOrder {

    private String userName;// 用户名
    private String customNo;// 客户编号
    private String orderNo;// 订单编号 TODO 是送货单号吗？
    private Date orderDate;// 下单时间 不是制单日期
    private String acceptor;// 收件人
    private String address;// 送货地址
    private String tel;// 联系电话
    private String totalAmount;// 总金额（用于填写“大写合计”栏）
    private String creator;// 制单人 TODO 此数据无来源
    private String rechecker;// 复核人 TODO 此数据无来源
    private List<ProductItem> products;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCustomNo() {
        return customNo;
    }

    public void setCustomNo(String customNo) {
        this.customNo = customNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public String getAcceptor() {
        return acceptor;
    }

    public void setAcceptor(String acceptor) {
        this.acceptor = acceptor;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(String totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getRechecker() {
        return rechecker;
    }

    public void setRechecker(String rechecker) {
        this.rechecker = rechecker;
    }

    public List<ProductItem> getProducts() {
        if (products == null) {
            products = new ArrayList<ProductItem>();
        }
        return products;
    }

    public void setProducts(List<ProductItem> products) {
        this.products = products;
    }
}